﻿namespace JunFan.ViewModels
{
    using Domain;

    public class ArgumentExceptionErrorView
    {
        private readonly string _message;
        private readonly string _argumentValue;
        private readonly string _argumentName;
        private readonly string _actionDescription;

        public ArgumentExceptionErrorView(WrongArgumentException exception)
        {
            _message = exception.Message;
            _argumentName = exception.ArgumentArgumentName;
            _argumentValue = exception.ArgumentArgumentValue;
            _actionDescription = exception.ActionDescription;
        }

        public string FullPath { get; set; }

        public string Message
        {
            get { return _message; }
        }

        public string ArgumentValue
        {
            get { return _argumentValue; }
        }

        public string ArgumentName
        {
            get { return _argumentName; }
        }

        public string ActionDescription
        {
            get { return _actionDescription; }
        }
    }
}